package com.kingyea.app.market.appauthorization.dao;

import com.kingyea.app.market.appauthorization.bean.AppAuthorization;
import com.kingyea.app.market.appauthorization.bean.AppAuthorizationPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hx
 * @version v1.0.0
 * @description AppAuthorizationMapper
 * @date Created in 2018-05-02 11:34:13
 */
public interface AppAuthorizationMapper {

    /**
     * 通过ID获取对象
     */
    AppAuthorization getById(@Param("id") Integer id);

    /**
     * 通过ID删除对象
     */
    int deleteById(@Param("id") Integer id);

    /**
     * 更新对象
     */
    int update(AppAuthorization obj);

    /**
     * 保存对象
     */
    int save(AppAuthorization obj);

    /**
     * 查询列表
     */
    List<AppAuthorization> list(AppAuthorization appAuthorization);

    int batchSave(@Param("appAuthorizationList") List<AppAuthorization> appAuthorizationList);

    List<AppAuthorization> getbyUser(AppAuthorizationPo appAuthorization);
}
